﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Web;
using PeoplePickerPlus.Entities;

namespace PeoplePickerPlus.Services
{
    [ServiceContract]
    interface IEntities
    {
        [OperationContract]
        [WebGet(UriTemplate = "version", ResponseFormat = WebMessageFormat.Json)]
        string GetVersion();

        [OperationContract]
        [WebInvoke(UriTemplate = "getentities", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        EntitiesResponse GetEntities(EntityRequest request);

        [OperationContract]
        [WebGet(UriTemplate = "getmembers/?GroupID={groupId}", ResponseFormat = WebMessageFormat.Json)]
        EntitiesResponse GetMembers(string groupId);
    }
}
